<html>
<head>
    <title>OAuth2.0��ҳ��Ȩ</title>
    <meta name="viewport" content="width=device-width,user-scalable=0">
    <style type="text/css">
        *{margin:0; padding:0}
        table{border:1px dashed #B9B9DD;font-size:12pt}
        td{border:1px dashed #B9B9DD;word-break:break-all; word-wrap:break-word;}
    </style>
</head>
<body>
<div id="aaa"></div>
</body>
<script type='text/javascript' src="../js/jquery.js" ></script>
<script type="text/javascript">
function getQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return unescape(r[2]); return null;
    }

 var code=getQueryString("code");
 var state=getQueryString("state");
 alert("code="+code);
 $.get("/shambles/oauth/getUserInfo.do", {
     code:code,
     state:state
}, function(text) {
   $("#aaa").html(text);
});

</script>
</html>